Submit the value of a timer which is then use for JS function